package com.yyw.foodie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author yiyw
 * @since 2021-05-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("stu")
public class StuEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    public StuEntity(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    private Integer age;


}
